<h1>Listing tickets</h1>

<table>
  <tr>
    <th>Created user</th>
    <th>Assigned user</th>
    <th>Category</th>
    <th>Platform</th>
    <th>Url</th>
    <th>Short description</th>
    <th>Long description</th>
    <th>Status</th>
    <th>Priority</th>
  </tr>

<% for ticket in @tickets %>
  <tr>
    <td><%=h ticket.created_user_id %></td>
    <td><%=h ticket.assigned_user_id %></td>
    <td><%=h ticket.category_id %></td>
    <td><%=h ticket.platform_id %></td>
    <td><%=h ticket.url %></td>
    <td><%=h ticket.short_description %></td>
    <td><%=h ticket.long_description %></td>
    <td><%=h ticket.status %></td>
    <td><%=h ticket.priority %></td>
    <td><%= link_to 'Show', ticket %></td>
    <td><%= link_to 'Edit', edit_ticket_path(ticket) %></td>
    <td><%= link_to 'Destroy', ticket, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New ticket', new_ticket_path %>
